<?

$id = $_GET['id'];
$library = $_GET['library'];

require ("imdbsearch.class.php");

$search = new imdbsearch ();
$search->setsearchname ($HTTP_GET_VARS["name"]);
$results = $search->results ();

echo "<center>";
echo "<b style=\"font-size: 20;\">IMDB Search</b>";
echo "<br><br><br>";

foreach ($results as $res) {

     echo "<a href=index.php?section=imdb&id=$id&library=$library&mid=";
     echo $res->imdbid();
     echo ">";
     echo $res->title();
     echo " (".$res->year().")";
     echo "</a> ";
     echo "<br>\n";
}
echo "</center>";

?>
